Jun 21, 2020
simply add this line to your viewControllernavigationController?.additionalSafeAreaInsets.top = 100// where 100 is the extra space
@IBAction func sliderSlided(_ sender: Any) {let top: CGFloat = (CGFloat(200 * ((sender as? UISlider)?.value ?? 1) - 0.5))navigationController?.additionalSafeAreaInsets.top = top}

@IBAction func slider2Slided(_ sender: Any) {let top: CGFloat = (CGFloat(100 * ((sender as? UISlider)?.value ?? 1)))additionalSafeAreaInsets.top = top}


Confusians
© 2015 - 2025